//
//  Redirect.swift
//  麦子洗衣 跳转
//
//  Created by yangyifan on 15/10/22.
//  Copyright © 2015年 womenshuo. All rights reserved.
//

import UIKit

struct Redirect {
    
    static var storyBoardName = "Main"
    
    //跳转到首页
    static func redirectToIndex() -> UIViewController {
        return UIStoryboard(name: self.storyBoardName, bundle: nil).instantiateViewControllerWithIdentifier("IndexViewController") as! IndexViewController
    }
    
    //跳转到登录页面
    static func redirectToLogin() -> UIViewController {
        return UIStoryboard(name: self.storyBoardName, bundle: nil).instantiateViewControllerWithIdentifier("LoginViewController") as! LoginViewController
    }
    
    //跳转到 启动界面
    static func redirectToStart() -> UIViewController {
        return UIStoryboard(name: self.storyBoardName, bundle: nil).instantiateViewControllerWithIdentifier("StartViewController") as! StartViewController
    }
    
}
